﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;

namespace SosData
{
    public class Usuario : EntityBase
    {

        public int IdUser { get; set; }
        public string Name { get; set; }
        public string NickName { get; set; }
        public string Password { get; set; }

        public string email { get; set; }
        public string EmailPassword { get; set; }
        public string POP { get; set; }
        public string SMPT { get; set; }
        public bool UseSSL { get; set; }

        public Roles Rol { get; set; }
        public enum Roles
        {
            Admintrador,
            Usuario,
            Invitado,
        }

        public virtual List<PermisoForm> permisosForms { get; set; }
        public virtual List<FormStatus> formsStatus { get; set; }

        public Usuario()
        {
            permisosForms = new List<PermisoForm>();
            formsStatus = new List<FormStatus>();
        }
    }
}
